package com.github.browep.bat.util;

import com.github.browep.bat.activities.BaseActivity;

import static com.github.browep.bat.Constants.CURRENT_COUNT;

/**
 * Created by IntelliJ IDEA.
 * User: paul
 * Date: 10/2/11
 * Time: 12:41 PM
 * To change this template use File | Settings | File Templates.
 */
public class PunchCardUtils {
    public static int getCurrentPunches(BaseActivity baseActivity){
        final int currentCount = baseActivity.getDao().getInt(CURRENT_COUNT);
        if(currentCount < 0)
            return 0;
        return currentCount;
    }


}
